package com.scalar.forecast.forecastReports.forms;

import com.scalar.forecast.ForecastActionForm;
import com.scalar.chiptrack.utils.DateUtil;
import org.apache.struts.action.ActionMapping;

import javax.servlet.http.HttpServletRequest;

/**
 * User: Gandhi
 * Date: Jul 22, 2005
 * Time: 4:55:00 PM
 */

public class SalesForecastReportForm extends ForecastActionForm
{
    private int year;
    private int showNext;
    private int month;
    private int fromMonth;
    private int toMonth;
    private int toYear;


	private float confidenceLevel;
    private int customerId;
    private int endCustomerId;
    private int productId = -1;
    private int salesPersonId;
    private String period = "byQuarter"; //byQuarter, byMonth
    private int qtrNo = DateUtil.getCurrentQtrNo();
    private String category = "bySalesPerson"; //bySalesPerson, byProduct, byEndCust
    private String reportType = "forecast";//forecast, forecastBacklog
    private String userList1Label = null;
    private String userList1Val;

    private String  salesPartNumber;
    private String  customerName;
    private String chipSet;
    private String chipFamily;
    private int currentYear =DateUtil.getCurrentYear();
    private int processStepId = -1;
    private String region;
    private int regionId;
    private int qty;
    private int price;

    private String qtyType;
    private String priceType;
    private int[] productIds;
    private int[] processStepIds;
    private int[] customerIds;
    private int[] salesPersonIds;
    private boolean startOver;
    private String reportName;
    private String scenario;

    public SalesForecastReportForm()
    {
        year        = -1;
        showNext    = 0;
        month       = -1;
        fromMonth   = -1;
        toMonth     = -1;
        confidenceLevel = -1;
        toYear  = -1;
    }

    public int getToYear() {
		return toYear;
	}

	public void setToYear(int toYear) {
		this.toYear = toYear;
	}
	
    public int getYear()
    {
        return year;
    }

    public void setYear(int year)
    {
        this.year = year;
    }

    public int getShowNext()
    {
        return showNext;
    }

    public void setShowNext(int showNext)
    {
        this.showNext = showNext;
    }

    public int getMonth()
    {
        return month;
    }

    public void setMonth(int month)
    {
        this.month = month;
    }

    public int getFromMonth()
    {
        return fromMonth;
    }

    public void setFromMonth(int fromMonth)
    {
        this.fromMonth = fromMonth;
    }

    public int getToMonth()
    {
        return toMonth;
    }

    public void setToMonth(int toMonth)
    {
        this.toMonth = toMonth;
    }

    public float getConfidenceLevel()
    {
        return confidenceLevel;
    }

    public void setConfidenceLevel(float confidenceLevel)
    {
        this.confidenceLevel = confidenceLevel;
    }


    public int getCustomerId() {
        return customerId;
    }

    public void setCustomerId(int customerId) {
        this.customerId = customerId;
    }

    public String getReportType() {
        return reportType;
    }

    public void setReportType(String reportType) {
        this.reportType = reportType;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public int getQtrNo() {
        return qtrNo;
    }

    public void setQtrNo(int qtrNo) {
        this.qtrNo = qtrNo;
    }

    public String getPeriod() {
        return period;
    }

    public void setPeriod(String period) {
        this.period = period;
    }

    public int getSalesPersonId() {
        return salesPersonId;
    }

    public void setSalesPersonId(int salesPersonId) {
        this.salesPersonId = salesPersonId;
    }

    public int getProductId() {
        return productId;
    }

    public void setProductId(int productId) {
        this.productId = productId;
    }

    public int getEndCustomerId() {
        return endCustomerId;
    }

    public void setEndCustomerId(int endCustomerId) {
        this.endCustomerId = endCustomerId;
    }

    public String getUserList1Label() {
        return userList1Label;
    }

    public void setUserList1Label(String userList1Label) {
        this.userList1Label = userList1Label;
    }

    public String getUserList1Val() {
        return userList1Val;
    }

    public void setUserList1Val(String userList1Val) {
        this.userList1Val = userList1Val;
    }

    public String getSalesPartNumber() {
        return salesPartNumber;
    }

    public void setSalesPartNumber(String salesPartNumber) {
        this.salesPartNumber = salesPartNumber;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getChipSet() {
        return chipSet;
    }

    public void setChipSet(String chipSet) {
        this.chipSet = chipSet;
    }

    public String getChipFamily() {
        return chipFamily;
    }

    public void setChipFamily(String chipFamily) {
        this.chipFamily = chipFamily;
    }

    public int getCurrentYear() {
        return currentYear;
    }

    public void setCurrentYear(int currentYear) {
        this.currentYear = currentYear;
    }

    public int getProcessStepId() {
        return processStepId;
    }

    public void setProcessStepId(int processStepId) {
        this.processStepId = processStepId;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public int getQty() {
        return qty;
    }

    public void setQty(int qty) {
        this.qty = qty;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getQtyType() {
        return qtyType;
    }

    public void setQtyType(String qtyType) {
        this.qtyType = qtyType;
    }

    public String getPriceType() {
        return priceType;
    }

    public void setPriceType(String priceType) {
        this.priceType = priceType;
    }

    public int getRegionId() {
        return regionId;
    }

    public void setRegionId(int regionId) {
        this.regionId = regionId;
    }

    public int[] getProductIds() {
        return productIds;
    }

    public void setProductIds(int[] productIds) {
        this.productIds = productIds;
    }

    public int[] getProcessStepIds() {
        return processStepIds;
    }

    public void setProcessStepIds(int[] processStepIds) {
        this.processStepIds = processStepIds;
    }

    public int[] getCustomerIds() {
        return customerIds;
    }

    public void setCustomerIds(int[] customerIds) {
        this.customerIds = customerIds;
    }

    public int[] getSalesPersonIds() {
        return salesPersonIds;
    }

    public void setSalesPersonIds(int[] salesPersonIds) {
        this.salesPersonIds = salesPersonIds;
    }


    public boolean isStartOver() {
        return startOver;
    }

    public void setStartOver(boolean startOver) {
        this.startOver = startOver;
    }

    public void reset(ActionMapping actionMapping, HttpServletRequest httpServletRequest) {
        startOver = false;
    }

    public String getReportName() {
        return reportName;
    }

    public void setReportName(String reportName) {
        this.reportName = reportName;
    }

    public String getScenario() {
        return scenario;
    }

    public void setScenario(String scenario) {
        this.scenario = scenario;
    }
}
